<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <input id="sonsysId" name="sonsysId" th:value="${sonsys.sonsysId}" type="hidden">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">子系统名字：</label>
                            <div class="col-sm-8">
                                <input id="sonsysName" name="sonsysName" th:value="${sonsys.sonsysName}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-3">
                                <input id="projectId" name="projectId" th:value="${sonsys.projectId}"
                                       class="form-control" type="hidden">

                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">子系统成本：</label>
                            <div class="col-sm-8">
                                <input id="sonchengben" name="sonchengben" th:value="${sonsys.sonchengben}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">子系统报价：</label>
                            <div class="col-sm-8">
                                <input id="sonbaojia" name="sonbaojia" th:value="${sonsys.sonbaojia}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">子系统利润：</label>
                            <div class="col-sm-8">
                                <input id="sonlirun" name="sonlirun" th:value="${sonsys.sonlirun}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">提示：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control"
                                       readonly="readonly" value="一般不用修改成本、报价、以及利润信息，每次刷新添加会自动生成">
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/js/appjs/system/sonsys/edit.js">
</script>

<script type="text/javascript">

    $(function () {
        var sonchengben = $("#sonchengben").val();
        $("#sonchengben").val(formatnum(sonchengben));

        var sonbaojia = $("#sonbaojia").val();
        $("#sonbaojia").val(formatnum(sonbaojia));

        var sonlirun = $("#sonlirun").val();
        $("#sonlirun").val(formatnum(sonlirun));


    })



    function formatnum(num) {

        return new Number(num);
    }



    function catclick(catId, catName) {
        $("#dropdownMenu1").text(catName);
        $("#projectId").val(catId);

    }
</script>
</body>
</html>
